package view;

import javax.microedition.lcdui.Form;

import model.GeoCoder;
import model.StaticMap;

public class Start extends Form
{
	public Start(String name)
	{
		super(name);
	}
	
	public void build()
	{
		
		GeoCoder gc = new GeoCoder();
		StaticMap sm = new StaticMap();
		String coordinates = null;
		
		try
		{
			coordinates = gc.getCoordinates("Ilha do Fundao Rio de Janeiro RJ");
		} 
		catch (Exception e) { e.printStackTrace();}
		
		this.append(sm.getMap(coordinates, 13, 250, 250));
	}
}
